package com.lcm.test.designpatterntest.EasyFactory;

/**
 * @description:
 * @author: lcm
 * @create: 2020-03-11 17:34
 **/

public class ProductFactory {

    public static AbstractProduct create(String type){
        switch (type){
            case "A":return new ProductA();
            case "B":return new ProductB();
            default:return null;
        }
    }

}
